if(BUILD_TESTING)
 include(MITKIGTTrackingDeviceHardwareTesting.cmake)
endif(BUILD_TESTING)

MITK_CREATE_MODULE_TESTS()

if(MITK_TRACKING_DEVICES_HARDWARE_TESTS_ENABLED)

  if(MITK_NDI_AURORA_CONNECTED)
    mitkAddCustomModuleTest(mitkNDIAuroraHardwareTest mitkNDIAuroraHardwareTest ${MITK_NDI_AURORA_COM_PORT})
  endif(MITK_NDI_AURORA_CONNECTED)

  if(MITK_NDI_POLARIS_CONNECTED)
    mitkAddCustomModuleTest(mitkNDIPolarisHardwareTest mitkNDIPolarisHardwareTest ${MITK_NDI_POLARIS_COM_PORT})
  endif(MITK_NDI_POLARIS_CONNECTED)

  if(MITK_CLARON_MICRONTRACKER_CONNECTED)
    mitkAddCustomModuleTest(mitkClaronTrackingDeviceHardwareTest  mitkClaronTrackingDeviceHardwareTest ${MITK_DATA_DIR}/IGT-Data/MicronTrackerToolfiles/Tool_11 ${MITK_DATA_DIR}/IGT-Data/MicronTrackerToolfiles/Tool_12 ${MITK_DATA_DIR}/IGT-Data/MicronTrackerToolfiles/Tool_13)
  endif(MITK_CLARON_MICRONTRACKER_CONNECTED)

  if(MITK_POLHEMUS_CONNECTED)
    mitkAddCustomModuleTest(mitkPolhemusTrackingDeviceHardwareTest  mitkPolhemusTrackingDeviceHardwareTest)
  endif(MITK_POLHEMUS_CONNECTED)

endif(MITK_TRACKING_DEVICES_HARDWARE_TESTS_ENABLED)

option(MITK_IGT_READER_WRITER_TESTS_ENABLED "Enable additional reader/writer tests of the IGT module." OFF)
mark_as_advanced(MITK_IGT_READER_WRITER_TESTS_ENABLED)

if(MITK_IGT_READER_WRITER_TESTS_ENABLED)
  mitkAddCustomModuleTest(mitkNavigationToolReaderAndWriterTest mitkNavigationToolReaderAndWriterTest)
  mitkAddCustomModuleTest(mitkNavigationToolStorageDeserializerTest mitkNavigationToolStorageDeserializerTest)
  mitkAddCustomModuleTest(mitkNavigationToolStorageSerializerAndDeserializerIntegrationTest mitkNavigationToolStorageSerializerAndDeserializerIntegrationTest)
  mitkAddCustomModuleTest(mitkNavigationToolStorageSerializerTest mitkNavigationToolStorageSerializerTest)
endif(MITK_IGT_READER_WRITER_TESTS_ENABLED)
